package com.wg.springboot.T;
//泛型方法有什么用还没搞明白wg
public class T_method2<Customize> {
    private String name;
    private Integer age;
    private Customize a;
    //方法参数没有泛型参数该方法就不是泛型方法
    //泛型方法是要new对象的不能是静态，如果一定要静态另一种写法
    public static <Customize> void getA(Customize a){
        System.out.println(a);
    }

    public Customize getA() {
        return a;
    }

    public void setA(Customize a) {
        this.a = a;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
